package com.itheima.d2_genericity_class;

import java.util.ArrayList;

/**
 * 泛型类
 *
 */
public class MyArrayList <E>{
    private ArrayList arrayList = new ArrayList();

    public void add(E e){
        arrayList.add(e);
    }

    @Override
    public String toString() {
        return
                "arrayList=" + arrayList
                ;
    }

    public void remove(E e){
        arrayList.remove(e);
    }
}
